BunnyHopSpeed.newVelocity

Gets the current velocity and updates it to be the previous one

struct BunnyHopSpeed
vec3
newVelocity
(,
bool inAir = false
)

Parameters

accelDir vec3

The direction the player has specified (e.g. arrow keys)

inAir bool

Is the player currently in the air? Default: false

Return Value

Type: vec3

The current velocity

Meta